package com.attms.service;

import com.attms.domain.Absent;
import com.attms.domain.Employee;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IPersonnelService extends IService<Employee> {
    // 人事部查询所有员工的基础信息
    List<Employee> getAllInfo();

    // 人事部查询报表
    List<Employee> getAllReport();

    // 查询某个员工信息
    Employee getInfoById(Integer EmployeeId);

    // 人事部删除某个员工
    boolean deleteById(Integer EmployeeId);

    // 人事部修改员工信息
    boolean modifyById(Employee employee);

    // 人事部添加新员工
    boolean add(Employee employee);

    // 人事部审核请假材料
    boolean solveLeave(Integer isAgree, Absent absent);

}
